import { configureStore } from '@reduxjs/toolkit';  
import quizReducer from './reducers/quizReducer'; 
import { thunk } from 'redux-thunk';  
  

const store = configureStore({  
    reducer: {  
        quiz: quizReducer  
    },  
    middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(thunk),  

});  
  
export default store;